package com.ruoyi.employee.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工档案对象 education_experience
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
public class EducationExperience extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教育经历ID，主键 */
    private Long id;

    /** 员工ID，关联员工表 */
    @Excel(name = "员工ID，关联员工表")
    private Long employeeId;

    /** 学历，如：本科、硕士等 */
    @Excel(name = "学历，如：本科、硕士等")
    private String degree;

    /** 毕业院校名称 */
    @Excel(name = "毕业院校名称")
    private String school;

    /** 所学专业 */
    @Excel(name = "所学专业")
    private String major;

    /** 教育开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "教育开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 教育结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "教育结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 教育类型，如：全日制、在职等 */
    @Excel(name = "教育类型，如：全日制、在职等")
    private String educationType;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 记录创建时间 */
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }

    public void setDegree(String degree) 
    {
        this.degree = degree;
    }

    public String getDegree() 
    {
        return degree;
    }

    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }

    public void setMajor(String major) 
    {
        this.major = major;
    }

    public String getMajor() 
    {
        return major;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setEducationType(String educationType) 
    {
        this.educationType = educationType;
    }

    public String getEducationType() 
    {
        return educationType;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("degree", getDegree())
            .append("school", getSchool())
            .append("major", getMajor())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("educationType", getEducationType())
            .append("delFlag", getDelFlag())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
